<%-- 
    Document   : form lihat barang gudang
    Created on : Nov 21, 2013, 6:06:25 AM
    Author     : admin
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="bean.BarangGudang"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
   <body bgcolor="blue">
        <table border="0" align="center">
            <th colspan="2"rowspan="1" width="1%" bgcolor="#1E1C1C" ><h1> <font color="white"
                        <h1 align="center" style="color:#00CCFF"> Rekayasa Perangkat Lunak Berorientasi Obyek </h1>
                        <h2 align="center" style="color:#00CCFF"> Sistem Informasi Distribusi Aqua " Toko Mentari " </h2>
                        <h3 align="center" style="color:#00CCFF"> Kelompok JBK+ </h3>
                    </font>

        </table>
    <font style="font-size: 18px ; font-family: 'Jokerman'"><center>FORM LIHAT BARANG</center></font><br>
    <table border="0" align="center" width="550" height="80">
        <tr>
            <td align="center">NO</td>
            <td align="center">ID BARANG</td>
            <td align="center">NAMA BARANG</td>
            <td align="center">JUMLAH BARANG</td>
            <td align="center">HARGA BARANG</td>
        </tr>
                <%
            BarangGudang barangGudang = new BarangGudang();
            ResultSet resultSet = barangGudang.tampilBarang();
            int counter = 1;
            while (resultSet.next()) {
                out.print("<tr>");
                out.print("<td align='center'>" + (counter) + "</td>");
                out.print("<td align='center'>" + resultSet.getString("idbarang") + "</td>");
                out.print("<td align='center'>" + resultSet.getString("namabarang") + "</td>");
                out.print("<td align='center'>" + resultSet.getString("jumlahbarang") + "</td>");
                out.print("<td align='center'>" + resultSet.getString("hargabarang") + "</td>");
                out.print("</tr>");
                counter++;
            }
        %>           
    </table>
          
    <table border="0" align="center" width="220"> 
        <tr>
            <td align="center" width="50%"><form action="form_utama_gudang.jsp"><input type="submit" value="KEMBALI" name="kembali" style="font-size: 12px"></form></td>
        </tr>
    </table>
    </body>
</html>